package com.arofoxmsn.model.venue;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;

import com.arofoxmsn.model.location.Location;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class Transportation extends AbstractVenue{
	
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
	private Location basedOn;
	
	// Setters and Getters
	public Location getBasedOn() {return basedOn;}
	public void setBasedOn(Location basedOn) {this.basedOn = basedOn;}
	
}
